package cn.chiship.framework.upms.biz.system.pojo.dto;

import cn.chiship.framework.common.constants.TipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * App版本Dto
 * 2020-05-07 09:30
 *
 * @author: gengce
 **/
@ApiModel(value = "App版本信息表单")
public class UpmsAppVersionDto {

    @ApiModelProperty(value = "App唯一识别", required = true)
    @NotEmpty(message = "App唯一识别" + TipConstants.NOT_EMPTY)
    @Length(min = 1, max = 20)
    private String appCode;

    @ApiModelProperty(value = "App名称", required = true)
    @NotEmpty(message = "App名称" + TipConstants.NOT_EMPTY)
    @Length(min = 1, max = 50)
    private String name;

    @ApiModelProperty(value = "版本号", required = true)
    @NotNull(message = "版本号" + TipConstants.NOT_EMPTY)
    @Min(value = 1)
    private Integer appVersion;

    @ApiModelProperty(value = "版本名称", required = true)
    @NotEmpty(message = "版本名称" + TipConstants.NOT_EMPTY)
    @Length(min = 1, max = 18)
    private String appVersionName;

    @ApiModelProperty(value = "更新内容", required = true)
    @Length(min = 1, max = 1000)
    private String appRemark;

    @ApiModelProperty(value = "下载地址", required = true)
    @Length(min = 1, max = 200)
    private String appUrl;

    @ApiModelProperty(value = "Ios端版本号")
    @Length(max = 255)
    private String iosVersion;

    @ApiModelProperty(value = "Ios端更新内容")
    @Length(max = 500)
    private String iosRemark;

    @ApiModelProperty(value = "IosUrl")
    @Length(max = 255)
    private String iosUrl;

    @ApiModelProperty(value = "app类型(0 android  1 IOS)", required = true)
    @NotNull(message = "App唯一识别" + TipConstants.NOT_EMPTY)
    @Min(0)
    @Max(1)
    private Byte appType;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(Integer appVersion) {
        this.appVersion = appVersion;
    }

    public String getAppVersionName() {
        return appVersionName;
    }

    public void setAppVersionName(String appVersionName) {
        this.appVersionName = appVersionName;
    }

    public String getAppRemark() {
        return appRemark;
    }

    public void setAppRemark(String appRemark) {
        this.appRemark = appRemark;
    }

    public String getAppUrl() {
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

    public String getIosVersion() {
        return iosVersion;
    }

    public void setIosVersion(String iosVersion) {
        this.iosVersion = iosVersion;
    }

    public String getIosRemark() {
        return iosRemark;
    }

    public void setIosRemark(String iosRemark) {
        this.iosRemark = iosRemark;
    }

    public String getIosUrl() {
        return iosUrl;
    }

    public void setIosUrl(String iosUrl) {
        this.iosUrl = iosUrl;
    }

    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    public Byte getAppType() {
        return appType;
    }

    public void setAppType(Byte appType) {
        this.appType = appType;
    }
}
